#include<stdio.h>
#include<string.h>
#define ARR_SIZE 80
int main(void)
{
    char str[ARR_SIZE];
    int i,letter=0,digit=0,space=0,others=0;
    printf("Plsese input a string:");
    gets(str);
    for(i=0;str[i]!='\0';i++)
    {
        if(str[i]>='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z')
            letter++;
        else if(str[i]>='0'&&str[i]<='9')
            digit++;
        else if(str[i]==' ')
            space++;
        else
            others++;
    }
    printf("English character: %d\n",letter);
	printf("digit character: %d\n",digit);
	printf("space: %d\n",space);
	printf("other character: %d\n",others);
	return 0;

}
